<?php
require_once '../../library/config.php';
require_once '../library/functions.php';

//$_SESSION['login_return_url'] = $_SERVER['REQUEST_URI'];
//checkUser();
require_once '../auth.php';
$view = (isset($_GET['view']) && $_GET['view'] != '') ? $_GET['view'] : '';

switch ($view) {
	case 'list' :
		$content 	= 'list.php';		
		$pageTitle 	= 'Shop Admin Control Panel - View Product';
		break;

	case 'add' :
		$content 	= 'add.php';		
		$pageTitle 	= 'Shop Admin Control Panel - Add Product';
		break;

	case 'modify' :
		$content 	= 'modify.php';		
		$pageTitle 	= 'Shop Admin Control Panel - Modify Product';
		break;

	case 'detail' :
		$content    = 'detail.php';
		$pageTitle  = 'Shop Admin Control Panel - View Product Detail';
		break;
		
	default :
		$content 	= 'list.php';		
		$pageTitle 	= 'Shop Admin Control Panel - View Product';
}

$script    = array('product.js');

require_once '../include/template.php';
?>
<html >
<head>   
    <style type="text/css">
        .style1
        {
            font-family: "Times New Roman", Times, serif;
            font-size: large;
            font-weight: bold;
        }
        .style2
        {
            color: #FF5050;
        }
    </style>
</head>
<body>
<!-- Navigation -->
				<ul id="main-nav">
					<li>
					</li>
						<li>
						<a  href="<?php echo WEB_ROOT; ?>admin/category/">
							Category</a><ul>							
							<li><a >Add</a></li>
							<li><a href="#">Modify</a></li>
						</ul>
					</li>
					<li>
						<a class="current" href="<?php echo WEB_ROOT; ?>admin/product/">
							Product</a><ul>
							<li><a href="#">Pages</a></li>
							<li><a href="#">Articles</a></li>
						</ul>
					</li>
						
					<li>
						<a href="<?php echo WEB_ROOT; ?>admin/order/?status=Paid">
							Order</a><ul>
							<li><a href="#">Edit CSS</a></li>
							<li><a href="#">Manage Themes</a></li>
						</ul>
					</li>
						
					<li>
						<a  href="<?php echo WEB_ROOT; ?>admin/user/">
							Users
						</a>
						
						<ul>
							<li><a href="#">Permissions</a></li>
							<li><a href="#" class="current">Manage Users</a></li>
							<li><a href="#">Manage Usergroups</a></li>
						</ul>
					</li>
						
					<li>
						<a href="<?php echo WEB_ROOT; ?>admin/config/">
							Settings
						</a>
						
						<ul>
							<li><a href="#">Account settings</a></li>
							<li><a href="#">Domain settings</a></li>
						</ul>
					</li>
				</ul><!-- end #nav -->
				<div class="content-box">
					<div class="content-box-header">
						<h3>Form</h3>
					</div>					
					<div class="content-box-content">
					<?php
							require_once $content;	 
					?>
					</div>
				</div>
			<div class="clear">	
			</div><!-- end #content -->
 <span class="style1">
<span class="style2">Admin Control Panel Product</span></span>
</body>
</html>
